package com.itheima.health.job;

import com.itheima.health.service.OrderSettingService;
import org.apache.dubbo.config.annotation.Reference;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

//调用任务 类
public class QuartzJob implements Job {

    @Reference
    OrderSettingService orderSettingService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("Quartz定时任务开启" + new Date());
        this.orderSettingService.clearLastMonthMembers();
    }
}